/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package donnees;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.swing.table.AbstractTableModel;
import metier.*;

/**
 *
 * @author p1104123
 */
public class ModeleTableSalle5 extends AbstractTableModel {

    private String[] nomColonnes = {"jour", "0h - 2h", "2h - 4h", "4h - 6h", "8h - 10h", "10h - 12h", "12h - 14h","14h - 16h","16h - 18h","18h - 20h","20h - 22h", "22h - 24h" };
    private List<Projection> donnees;

    public ModeleTableSalle5() {
    }

    @Override
    public int getColumnCount() {
        return nomColonnes.length;
    }
    
    @Override
    public String getColumnName(int columnIndex)
    {
        return nomColonnes[columnIndex];
    }
    
    @Override
    public int getRowCount()
    {
        return 7;
    }
    @Override
    public Object getValueAt(int rowIndex, int columnIndex) {

        if (columnIndex == 0) {
            if (rowIndex == 0) return "Lundi";
            if (rowIndex == 1) return "Mardi";
            if (rowIndex == 2) return "Mercredi";
            if (rowIndex == 3) return "Jeudi";
            if (rowIndex == 4) return "Vendredi";
            if (rowIndex == 5) return "Samedi";
            if (rowIndex == 6) return "Dimanche";
        }
        return null;
    }

   
    }

